package main

import (
	"geeorm"
	_ "github.com/mattn/go-sqlite3"
)

func main() {
	engine, _ := geeorm.NewEngine("sqlite3","gee.db")
	defer engine.Close()
	s := engine.NewSession()
	_,_ = s.Raw("DROP TABLE IF EXISTS User;").Exec()
}

/*
func main() {
	db,_ := sql.Open("sqlite3","gee.db")
	defer func() { _ = db.Close() }()
	_,_ = db.Exec("DROP TABLE IF EXISTS User;")
	_,_ = db.Exec("CREATE TABLE User(Name text);")
	result,err := db.Exec("INSERT INTO User(`Name`) VALUES (?),(?)","tom","sam")
	if err == nil {
		effected, _ := result.RowsAffected()
		log.Println(effected)
	}
	row := db.QueryRow("SELECT name FROM User LIMIT 1")
	var name string
	if err := row.Scan(&name); err == nil {
		log.Println(name)
	}
}
*/
